@echo off
echo "启动博客开发环境..."

echo "启动后端API服务器..."
cd server
start cmd /k "npm run dev"

echo "等待2秒后启动前端..."
timeout 2

echo "启动前端Vue项目..."
cd ..
start cmd /k "pnpm run serve"

echo "开发环境启动完成！"
echo "前端: http://localhost:8080"
echo "后端: http://localhost:3001"
pause
